<?php
/**
 * Larfree Api类
 * @author xiao
 */
namespace App\Http\Controllers\Api\Common;
use Illuminate\Http\Request;
use Larfree\Controllers\ApisController as Controller;
use App\Models\Common\CommonFile;
class FileController extends Controller
{
    public function __construct(CommonFile $model)
    {
        $this->model = $model;
        parent::__construct();
    }

    public  function index(Request $request)
    {
        $this->model=$this->model->where('type',$request->type);
        return parent::index($request); // TODO: Change the autogenerated stub
    }
}